<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<script type="text/javascript">
	function detailInfo(id){
		$.ajax({
            type: "POST",
            url: "${basePath}/back/shipping/getShippingObject.sjson",
            data: {shippingId:id},
            dataType: "JSON",
            success: function(result){
                var data = JSON.parse(result.data);
                /**重置详情页中所有html展示信息**/
                resetDetailTable("detailTable");
                /**设置展示信息**/
                $("#d_ordersNo").html(data.shopOrders.ordersNo);
                $("#d_shippingSn").html(data.shopShipping.shippingSn);
                $("#d_deliveryCorpName").html(data.shopShipping.deliveryCorpName);
                $("#d_deliverySn").html(data.shopShipping.deliverySn);
            }
		});
	}
</script>
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog" style="width:70%">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h5 class="modal-title" id="myModalLabel">发货详情</h5>
			</div>
			<div class="modal-body">
				<table id="detailTable" align="center" class="addOrEditTable table table-bordered" style="width:100%;">
					<tr>
						<td class="toright_td" width="150px">订单号:</td>
						<td  class="toleft_td">&nbsp;&nbsp;<span id="d_ordersNo"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">发货编号:</td>
						<td  class="toleft_td">&nbsp;&nbsp;<span id="d_shippingSn"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">物流公司名称:</td>
						<td  class="toleft_td">&nbsp;&nbsp;<span id="d_deliveryCorpName"></span></td>
					</tr>
					<tr>
						<td class="toright_td" width="150px">物流编号:</td>
						<td  class="toleft_td">&nbsp;&nbsp;<span id="d_deliverySn"></span></td>
					</tr>
				</table>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
				</div>
			</div>
		</div>
	</div>
</div>